package jcommon.chap2_string;

import org.apache.commons.lang.StringUtils;

// 就是文字多了就用"..."代替多出来的部分
public class Abbreviate {
	public static void main(String[] args) {
		String test = "This is a test of the abbreviation.";
		String test2 = "Test";
		System.out.println(StringUtils.abbreviate(test, 10));
		System.out.println(StringUtils.abbreviate(test2, 10));
	}
}
